<template>
	<view class="">
		<view class="list">
			
		</view>
		<view class="uni-p-b-98"></view>
		<view class="submit-btn" @click="formSubmit">
			完成
		</view>
		<view class="uni-p-b-98"></view>
	</view>
</template>

<script>
	import {
		getBrandAddApi
	} from '@/api/brand/index.js'
	import {
		POST_TYPE
	} from '@/config/app.js';
	export default {
		data() {
			return {
				PhotoList: []
			}
		},
		methods: {
			uploadImg() {
				let that = this;
				that.$util.uploadImageOne({
					url: 'upload/image',
					name: 'multipart',
					count: 5,
					model: "user",
					pid: 0
				}, function(res) {
					that.PhotoList.push(res.data.url)
				});
			},
			formSubmit() {
				let that = this;
				let qualifixation = this.PhotoList.map(item => {
					let url = item.split('9000')[1];
					return url
				})
				if (!qualifixation) return that.$util.Tips({
					title: '请完善品牌认证'
				});
				uni.$emit('getPhoto', qualifixation.join(','))
				uni.navigateBack()
			}
		}
	}
</script>

<style>
	@import '/static/css/releaseForm.css';
</style>